<template>
	<view class="moneyFooter">
		<view class="u-flex u-row-between">
			<view>
				<view style="color: #999;font-size: 26rpx;" class="u-margin-bottom-10">{{text}}</view>
				<view style="color: #ff4a17;font-size: 45rpx;font-weight: 800;" v-if="money">
					<text style="font-size: 30rpx;">￥</text>
					{{money}}
				</view>
				<view style="color: #ff4a17;font-size: 45rpx;font-weight: 800;" v-else>-</view>
			</view>
			<view class="u-flex">
				<slot></slot>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			text: {
				type: String,
				default: "费用",
				required: true,
			},
			money: {
				type: String,
				default: "0.0",
				required: true,
			},
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.moneyFooter {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100vw;
		padding: 10rpx 30rpx;
		background: #fff;
		box-shadow: 0 0 30rpx #eee;
		z-index: 9;
	}
</style>